package com.hfkh;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class No_2 {
    public static void main(String[] args) {
        int count = 0;
        for (int i = 2; i <= 100; i++) {
            for (int j = 2; j <= i; j++) {
                if (i % j ==0 && i != j){
                    break;
                }
                if (i % j ==0 && i == j){
                    count++;
                    System.out.println(i);
                }
            }
        }
        System.out.println("一共有"+count+"个质数");
    }
}
